// extract module
var http = require('http');

// use module
http.createServer(function(request, response) {
	if (request.method == 'GET') {
		console.log('Get request');
	}
	else if (request.method == 'POST') {
		console.log('Post request');
	}
}).listen(52273, function() {
	console.log('Server running at http://127.0.0.1:52273');
});